package com.taotie.service;

import com.taotie.dto.ShoppingCartDTO;
import com.taotie.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    /**
     * 添加菜品到购物车
     * @param shoppingCartDTO
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    List<ShoppingCart> list();

    /**
     * 清空购物车
     */
    void cleanShoppingCart();

    void subShoppingCart(ShoppingCartDTO shoppingCartDTO);
}
